{{ if $.Site.Params.dateFormat }}
  {{ $date := (.Date.Format $.Site.Params.dateFormat) }}
  {{ $regex := "(?i)(january|february|march|april|may|june|july|august|september|october|november|december)" }}
  {{ $month := findRE $regex $date }}
  {{ if eq (len $month) 1 }}
    {{ replaceRE $regex (i18n (lower (printf "date.month.%s" (index $month 0)))) $date }}
  {{ else }}
    {{ .Date.Format $.Site.Params.dateFormat }}
  {{ end }}
{{ else }}
  {{ i18n (lower (printf "date.month.%s" .Date.Month)) }} {{ .Date.Day }}, {{ .Date.Year }}
{{ end }}